package com.oyjd.ybx.bean.po;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/**
 * 
 * 评论信息实体
 * 
 * @author <b>欧建东<br/>
 *         Email:oyjd@163.com</b>
 * @version 1.0
 */
@Entity
@Table(name = "T_COMMENT")
public class Comment implements Serializable {

	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 4409326031507283752L;

	/**
	 * 评论ID
	 */
	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(name = "COMMENT_ID", length = 32)
	private String commentId;

	/**
	 * 商品ID
	 */
	@Column(name = "GOODS_ID", length = 32)
	private String goodsId;

	/**
	 * 评论人帐号
	 */
	@Column(name = "ACCOUNT", length = 32)
	private String account;

	/**
	 * 评论信息
	 */
	@Column(name = "COMMENT_INFO", length = 200)
	private String commentInfo;

	/**
	 * 客户端IP
	 */
	@Column(name = "CUST_IP", length = 15)
	private String custIp;

	/**
	 * 创建时间
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME")
	private Date createTime;

	public String getCommentId() {
		return commentId;
	}

	public void setCommentId(String commentId) {
		this.commentId = commentId;
	}

	public String getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(String goodsId) {
		this.goodsId = goodsId;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getCommentInfo() {
		return commentInfo;
	}

	public void setCommentInfo(String commentInfo) {
		this.commentInfo = commentInfo;
	}

	public String getCustIp() {
		return custIp;
	}

	public void setCustIp(String custIp) {
		this.custIp = custIp;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}